# -*- coding:UTF-8 -*-

import wx
import wx.xrc
from src.analysis.echar import AnaEcharts

class EcharP(wx.Frame):

    def __init__(self, parent):
        wx.Frame.__init__(self, parent, id=wx.ID_ANY, title='分析图', pos=wx.DefaultPosition,
                          size=wx.Size(700, 500),
                          style=wx.CAPTION | wx.CLOSE_BOX | wx.FRAME_FLOAT_ON_PARENT | wx.FRAME_NO_TASKBAR | wx.TAB_TRAVERSAL)

        self.SetSizeHints(wx.DefaultSize, wx.DefaultSize)
        self.ae = AnaEcharts()

        bSizer_2 = wx.BoxSizer(wx.VERTICAL)

        self.m_bitmap1 = wx.StaticBitmap(self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.DefaultSize, 0)

        image = wx.Image('./confile/analysisdayport.png', wx.BITMAP_TYPE_ANY).Scale(700, 500)
        self.m_bitmap1.SetBitmap(wx.Bitmap(image))

        self.m_bitmap1.Enable(False)
        bSizer_2.Add(self.m_bitmap1, 1, wx.ALL | wx.EXPAND, 5)

        self.SetSizer(bSizer_2)
        self.Layout()

        self.Centre(wx.BOTH)

    def __del__(self):
        pass
